import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import requests from "./api/request"
//导入全局样式表
import "./assets/css/global.css"
//引入font样式
import "./assets/fonts/iconfont.css"
Vue.config.productionTip = false
//引入table组件
import ZkTable from 'vue-table-with-tree-grid'
Vue.use(ZkTable)

//导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor, /* { default global options } */ )
//引入dayjs
import dayjs from 'dayjs'

new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$requests = requests
    Vue.prototype.$dayjs = dayjs
  },
}).$mount('#app')
